home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 2
/
United Public Domain Gold 2.iso
/
education
/
pe103.dms
/
pe103.adf
/
MMM
/
MY_MUSIC_MACHINE.AMOS
/
MY_MUSIC_MACHINE.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1989-08-11
|
5KB
|
174 lines
Screen Open 0,320,256,16,Lowres : Cls 0 : Flash Off
Load Iff "mmm/mmintro"
Clear Key : Wait Key
Load Iff "MMM/mainscreen" : Pen 1 : Paper 0
Limit Mouse 130,50 To 440,290
Reserve Zone 12
Set Zone 1,5,5 To 135,20
Set Zone 2,70,5 To 310,20
Set Zone 3,25,45 To 80,80
Set Zone 4,80,45 To 155,80
Set Zone 5,156,45 To 225,80
Set Zone 6,235,45 To 300,80
Set Zone 7,70,220 To 155,245
Set Zone 8,161,220 To 250,245
Set Zone 9,115,92 To 135,105
Set Zone 10,175,92 To 195,105
Set Zone 11,260,225 To 300,240
Set Zone 12,270,90 To 300,105
A=1 : T=15 : IB=1
Locate 17,14 : Print T
Get Bob 1,22,45 To 83,80
Get Bob 2,84,45 To 152,80
Get Bob 3,156,45 To 222,80
Get Bob 4,235,45 To 300,80
On Error Goto SUGAR
MAIN:
Bob 1,125,130,IB
Tempo T
Wait 30
Repeat
If Key State(49) Then Sam Play 2,A,4996 : Gosub W
If Key State(50) Then Sam Play 2,A,5613 : Gosub W
If Key State(51) Then Sam Play 2,A,6327 : Gosub W
If Key State(52) Then Sam Play 2,A,6758 : Gosub W
If Key State(53) Then Sam Play 2,A,7580 : Gosub W
If Key State(54) Then Sam Play 2,A,8481 : Gosub W
If Key State(55) Then Sam Play 2,A,9486 : Gosub W
If Key State(56) Then Sam Play 2,A,10063 : Gosub W
If Key State(57) Then Sam Play 2,A,11415 : Gosub W
Until Mouse Click
MZ=Hzone(X Mouse,Y Mouse)
If MZ=1 Then Gosub LTUNE
If MZ=2 Then Gosub LBEAT
If MZ=3 Then A=1 : IB=1
If MZ=4 Then A=2 : IB=2
If MZ=5 Then A=3 : IB=3
If MZ=6 Then A=4 : IB=4
If MZ=7 Then Voice 9 : Music 1
If MZ=8 Then Music Off
If MZ=10 Then Inc T : Locate 17,14 : Print T;" " : If T=24 Then T=23
If MZ=9 Then Dec T : Locate 17,14 : Print T;" " : If T=1 Then T=2
If MZ=11 Then Gosub NOMORE
If MZ=12 Then Gosub HELP
Gosub MAIN
LTUNE:
Clear Key
F$=Fsel$("MMM/TUNE/*.abk","","LOAD A TUNE....GROOOVY")
If F$="" Then Gosub MAIN
Load F$
Gosub MAIN
LBEAT:
Clear Key
F$=Fsel$("MMM/BEAT/*.abk","","LOAD A BEAT MAN ! !")
If F$="" Then Gosub MAIN
Load F$
Gosub MAIN
W:
Wait 10
Return
NOMORE:
Screen Open 2,320,10,16,Lowres : Curs Off : Cls 6 : Flash Off : Paper 6
Centre "ARE YOU SURE YOU WANT TO QUIT? Y/N"
Channel 1 To Screen Display 2
Amal 1,"M 0,100,50"
Amal On
Wait 50
1
Clear Key : Wait Key
If Key State(21) Then Screen Close 2 : Run "menu.amos"
If Key State(54) Then Screen Close 2 : Gosub MAIN
Goto 1
SUGAR:
Screen Open 1,320,10,16,Lowres : Curs Off : Cls 6 : Flash Off : Paper 6
Centre "OH DEAR I CANT DO THAT..IS IT LOADED?"
Channel 1 To Screen Display 1
Amal 1,"M 0,100,50"
Amal On
Wait 200
Amal 1,"M 0,-130,50"
Amal On
Wait 51
Screen Close 1
Resume Next
HELP:
Music Off
Screen Open 3,320,50,16,Lowres : Cls 8 : Curs Off
Wait Vbl
Paper 8 : Pen 1
Print ""
Centre "HELP"
Pen 3
Set Talk ,,,130
Say "ok."
Say "here you see a gray box."
Channel 1 To Screen Display 3
Amal 1,"M 0,13,10" : Amal On : Wait 11
Say "look above the gray box."
Home
Print " ^ ^"
Say "if you click on this you load a tune."
Wait 50 : Home
Print " ^ ^"
Say "if you click on this you load a drum beat."
Wait 50
Amal 1,"M 0,60,40" : Amal On : Wait 51
Say "here we have your instrorments."
Home
Print " ^ ^ "
Say " click on this to play a peeano."
Home
Print " ^ ^"
Say " this plays a gee tar."
Home
Print " ^ ^"
Say " this a drum kit."
Home
Print " ^ ^"
Say " and this a spacey sound."
Wait 50
Home
Print " "
Amal 1,"M 0,30,20" : Amal On : Wait 21
Home
Print " ^ ^"
Say " this word is tempo."
Say " it means the speed of your tune."
Wait 30
Say " ahrow down makes it go slower."
Say " ahrow up makes it go faster."
Home
Print " "
Amal 1,"M 0,60,30" : Amal On : Wait 31
Home
Print " ^ ^"
Say "this is the instrorment you are playing."
Wait 50
Home : Print " "
Amal 1,"M 0,75,40" : Amal On : Wait 41
Home
Print " ^ ^"
Say "this makes your tune or beat go."
Home
Wait 50
Print " ^ ^"
Say " this makes it stop."
Wait 50
Home
Print " ^ ^"
Say " and this stops this program."
Cls
Wait 50
Amal 1,"M 0,-100,40" : Amal On : Wait 41
Cls
Print ""
Centre " Z X C V B N M < "
Say "if you look at your keyboard you will se these letters."
Wait 50
Say " push them to play your instrorment."
Wait 150
Screen Close 3
Say "there i hope you now know how to use me."
Say " have fun."
Screen 0 : Pen 1
Return